﻿@model IEnumerable<WebVideo.EntityTypeNew>
<script type="text/javascript">
    $(document).ready(function () {
      
        if (window.location.href.indexOf("TinTuc?IdType=1") > -1) {
            $("#1").addClass('active');
            return;
        }
        if (window.location.href.indexOf("TinTuc?IdType=2") > -1) {
            $("#2").addClass('active');
            return;
        }
        if (window.location.href.indexOf("TinTuc?IdType=3") > -1) {
            $("#3").addClass('active');
            return;
        }
        if (window.location.href.indexOf("TinTuc?IdType=4") > -1) {
            $("#4").addClass('active');
            return;
        }
        if (window.location.href.indexOf("TinTuc?IdType=7") > -1) {
            $("#7").addClass('active');
            return;
        }
        if (window.location.href.indexOf("TinTuc?IdType=8") > -1) {
            $("#8").addClass('active');
            return;
        }
    });
</script>
<ul class="nav nav-list">
    @{
        foreach(var item in Model)
        {
               <li id ="@item.Id">@Html.ActionLink(item.Name, "Index", "TinTuc", new { IdType = item.Id },null)</li>
        }
    }
</ul>